<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width initial-scale=1.0" />
		<title>链表</title>
	</head>
	<body>
		<script src="index.js"></script>
		<script>
			let singleNodeList = new SingleNodeList()
			singleNodeList.append('a')
			singleNodeList.append('b')
			singleNodeList.append('c')
			// const res = singleNodeList.insert(1, { node: 'D' })
			// console.log(res)
			// const res = singleNodeList.get(3)
			const res = singleNodeList.removeAt(0)
			// const res = singleNodeList.indexOf({ node: 'B' })
			// const res = singleNodeList.remove('fsa')
			// const res = singleNodeList.update(0, 'b')
			console.log(res)
			console.log(singleNodeList.toString())
			console.log(singleNodeList.size())
		</script>
	</body>
</html>
